package com.ruoyi.vbze.controller;

import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

import static com.ruoyi.common.core.web.domain.AjaxResult.success;

/**
 * @Author zhouz
 * @Date 2023-03-13 03:52:01
 * @LastEditTime 2023-03-13 03:52:01
 */

@RestController
public class ToolController {
    @Autowired
    JdbcTemplate jdbcTemplate;
    @GetMapping("/tools")
    public List<Map<String,Object>> getTools() {
        String sql="select * from block";
        List<Map<String, Object>> sqlList = jdbcTemplate.queryForList(sql);

        return sqlList;
    };
}
